package org.example.demo1.dto;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class CommandExecutionResult {
    private boolean success;
    private String output;
    private Integer exitCode;
    private Long executionTime;
    private String message;

    public static CommandExecutionResult error(String message) {
        return CommandExecutionResult.builder()
                .success(false)
                .message(message)
                .build();
    }
}
